package view;

import java.awt.FlowLayout;

import javax.swing.JCheckBox;
import javax.swing.JPanel;

import view.interfaces.IAddShapeTwo;
import controller.ControllerAddShapeOne;
import controller.ControllerAddShapeTwo;

public class AddShapeTwo extends AddShapeOne implements IAddShapeTwo {

	private static final long serialVersionUID = 1L;

	protected ControllerAddShapeTwo thisController;
	protected JPanel panelChooseIsIronWire;
    protected JCheckBox checkBoxIsIronWire;
	
	public AddShapeTwo(ControllerAddShapeTwo controller) {
    	
		super(new ControllerAddShapeOne());
		
		thisController = controller;
        thisController.setView(this);
        
        panelChooseIsIronWire = new JPanel(new FlowLayout());
        
        checkBoxIsIronWire = new JCheckBox("Fil de fer");
        
        panelChooseIsIronWire.add(checkBoxIsIronWire);

        panelEmptyTwo.add(panelChooseIsIronWire);
        
        btnSend.addActionListener(thisController);
        btnSend.setActionCommand("SENDADDSHAPETWO");
        
        setSize(400, 250);
    	
    }

	@Override
	public Boolean getValueIsIronWire() {
    	
    	return (Boolean) checkBoxIsIronWire.isSelected();
    	
    }

}
